package com.css.dzj.dzjportal.modules.todo.service;

import com.css.dzj.dzjportal.modules.todo.entity.PortalTodoEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 待办事项service
 * @author liyunyue
 */
@Service
public interface PortalTodoService {
    QueryResults<PortalTodoEntity> getPage(String title, String status, String station,
                                           String createPerson, Pageable pageable, HttpServletRequest request);
    PortalTodoEntity findByLinkId(String linkId);
    PortalTodoEntity findByIdandType(String id, String typeFlag);
    void update(PortalTodoEntity portalTodoEntity);

    List<PortalTodoEntity> queryTodoByLocation();

    void saveDB(PortalTodoEntity portalTodoEntity);

}
